package net.ib.mtalk.ui.buddy.item;

public class BuddyProfileItem {
	public Integer Type;
	public String phoneType;
	public String phoneNumber;
	public boolean mTalk;
	public String emailType; 
	public String emailAddress;
	
	public BuddyProfileItem() {
	}
	
	public BuddyProfileItem(Integer aType, String phonestyle, String phonenumber, Boolean mtalk, String emailstyle, String emailaddress){
		this.Type = aType;
		this.phoneType = phonestyle;
		this.phoneNumber = phonenumber;
		this.mTalk = mtalk;
		this.emailType = emailstyle;
		this.emailAddress = emailaddress;
	}
	
	@Override
	public boolean equals(Object o) {
		BuddyProfileItem item = (BuddyProfileItem)o;
		
		if (Type.equals(item.Type) &&
			phoneType.equals(item.phoneType) &&
			phoneNumber.equals(item.phoneNumber) &&
			mTalk == item.mTalk &&
			emailType.equals(item.emailType) &&
			emailAddress.equals(item.emailAddress)) {
			return true;
		}
		return false;
		
	}
}
